package com.live.http.slider;

import org.jsoup.Connection;
import org.jsoup.Jsoup;

public class ConnectionFactory {

	public static Connection getConnection(String url) {
		return getConnection(url, 3000);
	}

	public static Connection getConnection(String url, int timeout) {
		Connection conn = Jsoup.connect(url).timeout(timeout);
		return conn;
	}

}
